#!/bin/bash

echo "Test Case 1: Testing 50/50..."

tc=`java -jar Grades_v2.jar 50 50`

if [ "$tc" = "Pass" ]
  then
  echo "Test Passed"
else echo "test failed"
fi
# passed 1
# failed 0
echo "Test Case 2: Testing 70/10..."

tc=`java -jar Grades_v2.jar 70 10`

if [ "$tc" = "Component Fail" ]
  then
  echo "test failed"
fi

# passed 0
# fail 1

echo "Test Case 3: Testing 30/80..."

tc=`java -jar Grades_v2.jar 30 80`

if [ "$tc" = "Component Fail" ]
  then
  echo "test failed"
fi
# passed 0
# fail 1


echo "Test Case 4: Testing 80/60..."

tc=`java -jar Grades_v2.jar 80 60`

if [ "$tc" = "Pass" ]
  then
  echo "test passed"
fi

echo "Test Case 5: Testing 10/30..."

tc=`java -jar Grades_v2.jar 10 30`

if [ "$tc" = "Compoent Fail" ]
  then
  echo "test failed"
fi

